import request from '@/utils/request'

// 查询应急信息登记列表
export function listEmergencyInfo(query) {
  return request({
    url: '/factorymanagement/emergencyInfo/list',
    method: 'get',
    params: query
  })
}

// 查询应急信息登记详细
export function getEmergencyInfo(id) {
  return request({
    url: '/factorymanagement/emergencyInfo/' + id,
    method: 'get'
  })
}

// 新增应急信息登记
export function addEmergencyInfo(data) {
  return request({
    url: '/factorymanagement/emergencyInfo',
    method: 'post',
    data: data
  })
}

// 修改应急信息登记
export function updateEmergencyInfo(data) {
  return request({
    url: '/factorymanagement/emergencyInfo',
    method: 'put',
    data: data
  })
}

// 删除应急信息登记
export function delEmergencyInfo(id) {
  return request({
    url: '/factorymanagement/emergencyInfo/' + id,
    method: 'delete'
  })
}
